<html>

<head>
<title>SQL Relay - Getting Started With Oracle</title>
<link rel="stylesheet" href="../../../../../css/styles.css">
</head>

<body>

<span class="heading1">Configure the Kernel</span><br>

<p>Oracle 9i requires that you at least temporarily increase the maximum shared
memory segment size for installation.  To temporarily increase the maximum
shared memory segment size, follow these instructions (as root):</p>

<blockquote>
<b>echo "1073741824" > /proc/sys/kernel/shmmax</b>
</blockquote>

<span class="heading1">Set Up the Environment</span><br>

<p>Add the following line to /home/oracle/.bashrc near the bottom:</p>

<blockquote>
<b>export LD_ASSUME_KERNEL=2.4.1</b>
</blockquote>

<span class="heading1">Install Compatibility Packages</span><br>

<p>One phase of the installation requires gcc version 2.95.3.  Suse 9.0
comes with gcc version 3.3.1.  You can take care of this by downloading,
compiling and installing gcc-2.95.3.</p>

<p>First, download <a href="ftp://ftp.gnu.org/pub/gnu/gcc/gcc-2.95.3.tar.gz">gcc-2.95.3.tar.gz</a> from ftp.gnu.org.  Then follow these instructions
(as root) to build and install gcc-2.95.3 under /usr/local/gcc-2.95.3.</p>

<blockquote><b>
tar xfz gcc-2.95.3.tar.gz<br>
cd gcc-2.95.3<br>
./configure --prefix=/usr/local/gcc-2.95.3<br>
make<br>
make install<br>
</b></blockquote>

<p>After the Oracle installation is complete, you can remove the gcc
installation as follows:</p>

<blockquote><b>
rm -rf /usr/local/gcc-2.95.3
</b></blockquote>

<span class="heading1">Install Oracle</span><br>

<p>Now, log in as the oracle user.</p>

<p>Since Oracle 9.2.0 uses a graphical installer, you need to be running X
Windows or point the DISPLAY environment variable to an X Windows session
running somewhere.</p>

<p>I have had problems with the graphical installer on enlightenment and
fluxbox window managers in the past, though they may work for you.</p>

<p>If you have a CD, mount it and cd to the mount point.  If you have a cpio
distribution, extract all three files using:<p>

<blockquote><b>
cpio -idmv &lt; lnx_920_disk1.cpio<br>
cpio -idmv &lt; lnx_920_disk2.cpio<br>
cpio -idmv &lt; lnx_920_disk3.cpio<br>
</b></blockquote>

Change directories to the Disk1 directory.<br><br>

Type <b>./runInstaller</b><br><br>

On the <b>Welcome</b> screen click <b>Next</b><br><br>

An <b>Inventory Location</b> dialog will pop up.<br>
Accept the default base directory and click <b>OK</b><br><br>

On the <b>Unix Group Name</b> screen, enter <i>oinstall</i> for the
<b>UNIX Group Name</b> and click <b>Next</b><br><br>

A dialog will pop up and prompt you to run /tmp/orainstRoot.sh as root.<br>
Follow the instructions and click <b>Continue</b><br><br>

On the <b>File Locations</b> screen, accept the defaults and
click <b>Next</b><br><br>

On the <b>Available Products</b> screen, accept the default selection
<b>Oracle9i Database 9.2.0.1.0</b> and click <b>Next</b><br><br>

On the <b>Installation Types</b> screen, accept the default selection 
<b>Enterprise Edition</b> and click <b>Next</b><br><br>

On the <b>Database Configuration</b> screen, accept the default selection
<b>General Purpose</b> and click <b>Next</b><br><br>

On the <b>Database Identification</b> screen, enter <i>ora1</i> for both
<b>Global Database Name</b> and <b>SID</b> and click <b>Next</b><br><br>

On the <b>Database File Location</b> screen, accept the default
<b>Directory for Database Files</b> and click <b>Next</b><br><br>

On the <b>Database Character Set</b> screen, accept the default
selection <b>Use the default character set</b> and click <b>Next</b><br><br>

On the <b>Summary</b> screen, click <b>Install</b><br><br>

The <b>Install</b> screen will show the progress of the installation<br><br>


If a dialog pops up indicating:

<blockquote>
Error in invoking target ioracle of makefile<br>
/u01/app/oracle/product/9.2.0/rdbms/lib/ins_rdbms.mk
</blockquote>

edit /u01/app/oracle/product/9.2.0/rdbms/lib/env_rdbms.mk and change:
<pre>
	LINK=$(PURECMDS) gcc $(LDFLAGS) $(COMPSOBJS)
</pre>
to:
<pre>
	LINK=$(PURECMDS) /usr/local/gcc-2.95.3/bin/gcc $(LDFLAGS) $(COMPSOBJS)
</pre>

and change:

<pre>
	ORACLE_LINKER=$(ADE_DEL_FILE_CMD) $(PURECMDS) gcc $(OLAPPRELINKOPTS) $(LDFLAGS) $(COMPSOBJS)
</pre>
to:
<pre>
	ORACLE_LINKER=$(ADE_DEL_FILE_CMD) $(PURECMDS) /usr/local/gcc-2.95.3/bin/gcc $(OLAPPRELINKOPTS) $(LDFLAGS) $(COMPSOBJS)
</pre>
then click <b>Retry</b><br><br><br>


If a dialog pops up indicating:
<blockquote>
Error in invoking target install of makefile<br>
/u01/app/oracle/product/9.2.0/ctx/lib/ins_ctx.mk
</blockquote>
Click <b>Ignore</b>.  There is no known workaround for this problem and the
affected system doesn't appear to be critical.<br><br>

<p>At the end of the installation, a dialog will pop up asking you to run
root.sh.  Just follow the directions on the dialog and click <b>Ok</b><br><br>

On the <b>Configuration Tools</b> screen, the Database Creation Assistant
will run and a dialog will most likely pop up, indicating that it failed.
In that case, click Ok on the dialog and, run the following command as root:

<blockquote><b>touch /etc/rac_on</b></blockquote>

Now select <b>Oracle Database Configuration Assistant</b> And click <b>Retry</b>
<br><br>

A dialog will pop up indicating that a database is being created.
After a while, another dialog will pop up instructing you to provide passwords
for the SYS and SYSTEM users.  Enter new passwords for these users.  Note that
you cannont use the classic "manager" and "change_on_install" passwords.<br>
Click <b>OK</b><br><br>

Sometimes the Database Creation Assistant will just hang here.  Select
<b>Oracle Database Configuration Assistant</b> And click Stop.  If it doesn't
stop, you may have to kill it from the command line using the following command:

<blockquote><b>
kill `ps -efa | grep "JDBC_PROTOCOL=thin" | cut -c10-15`
</b></blockquote>

When the Database Creation Assistant is finished (or killed), click Next.<br><br>

On the <b>End Of Installation</b> screen click <b>Exit</b><br><br>

A dialog will pop up asking: Do you really want to exit?
Click <b>Yes</b>.<br><br>

The Oracle Enterprise Manager, a graphical database management interface
should start up soon.  You can exit it by clicking <b>File</b> and then
<b>Exit</b>.<br><br>

<p>In some cases, dbstart and dbshut don't work after installation.  To ensure
that they will work, you need to run the following command:</p>

<blockquote><b>
cp /u01/app/oracle/admin/ora1/pfile/initora1.ora.* /u01/app/oracle/product/9.2.0/dbs/initora1.ora
</b></blockquote>


<span class="heading1">Post-Installation</span><br>

<p>During the installation, the oracle web server was started.  You can
shut it down by executing the following command (as oracle):</p>

<blockquote><b>
/u01/app/oracle/product/9.2.0/Apache/Apache/bin/apachectl stop
</b></blockquote>

<p>At this point, only the database and tns listener should be running.</p>

</body>

</html>
